﻿using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;

namespace SW.DDD.Infrastructure
{
    public static class Utils
    {
        public static IEnumerable<object?> EnumerateTupleId(ITuple tuple)
        {
            if(tuple == null) throw new ArgumentNullException(nameof(tuple));
            for (var i = 0; i < tuple.Length; ++i)
                yield return tuple[i];
        }
    }
}
